package com.cm.order.feign;

import com.cm.common.core.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @类 名：GoodsFeign </br>
 * @描 述：</br>
 * @日 期：2020/10/8 16:14</br>
 * @作 者：常明</br>
 * @版 本：1.0.0
 * @since JDK 1.8
 */
@Component
@FeignClient(value = "GOODS-SERVICE",path = "/goods")
public interface GoodsFeign {
    @PostMapping("/getById")
    Result getGoodsById(@RequestParam("id") Long id);
}
